Week OverviewMon – Fri · 10 hours total

Redirects, pipes, text editors, compression, and cron — the vocabulary of Linux administration

Week 4 is deliberately placed before scripting because these tools are the vocabulary that makes scripting possible. A student who can't confidently redirect output to a file, pipe commands together, or edit a config file in nano will struggle to write meaningful Bash scripts in Week 5. By Friday every student can chain commands, schedule tasks with cron, compress archives three different ways, and edit files without leaving the terminal.

Week at a glance

Monday
Redirects & Pipes

>, >>, 2>, |, tee, xargs — chaining commands and capturing output

Tuesday
Text Editors & Environment

nano fluency, vim basics, $PATH, export, .bashrc, environment variables

Wednesday
Compression & Archives

tar, gzip, bzip2, lzma — create, list, extract, append, compare sizes

Thursday
Cron & Scheduling

crontab syntax, user and system crontabs, verify with syslog

Friday
Mini-Assessment 4

Written: cron syntax, compression theory. Practical: pipe/redirect challenge + cron job.

⭐ OverTheWire BanditStanding challenge — not assessed

Week 4 target: Levels 11–14

Level 11 uses tr for character rotation (ROT13). Level 12 involves a hex dump that must be decompressed multiple times using gzip, bzip2, and tar — a perfect match for Wednesday's compression lab. Level 13 introduces SSH private key authentication, which previews Week 6. Level 14 uses netcat for network communication.

Learning OutcomesBy end of Week 4, students can…
Use I/O redirectionRedirect stdout and stderr to files, append output, and discard error messages
Chain commands with pipesBuild multi-command pipelines; use tee to split output to file and screen
Edit files in the terminalNavigate and save files in nano; perform basic operations in vim (open, edit, save, quit)
Manage environment variablesInspect $PATH, export variables, modify .bashrc persistently
Create and extract archivesUse tar with gzip, bzip2, and lzma compression; compare sizes and explain trade-offs
Write and schedule cron jobsWrite correct crontab syntax, schedule tasks for student and root, verify execution
MondayLecture + guided lab · 2 hrs

I/O redirection and pipes — the glue that holds Linux together

0:00–0:10
Recap
0:10–0:40
Lecture
0:40–1:50
Guided lab
1:50–2:00
Debrief
The pipeline mindset: Emphasise that Linux tools are designed to do one thing well and work together. grep doesn't need a sort feature — it pipes to sort. sort doesn't need a deduplicate feature — it pipes to uniq. This Unix philosophy is why pipes matter.
TuesdayLecture + guided lab · 2 hrs

Text editors and environment — nano, vim basics, PATH, and .bashrc

0:00–0:10
Recap
0:10–0:35
Lecture
0:35–1:50
Guided lab
1:50–2:00
Debrief
Common student trap: Students often get stuck in vim and can't exit. Demonstrate :q! before they start. "If you're ever stuck in vim, Esc Esc :q! Enter always gets you out."
WednesdayLecture + Lab 6 Part 1 · 2 hrs

Compression and archives — tar, gzip, bzip2, lzma

0:00–0:10
Recap
0:10–0:35
Lecture
0:35–1:50
Lab 6 Pt 1
1:50–2:00
Debrief
Lab highlight: The movie quote in file4 ("Ministers, more sinister than ministers!") is from The Rocky Horror Picture Show — the lab notes say the instructor will be impressed if a student gets it. Keep it in. It makes lab marking memorable.
ThursdayLecture + Lab 6 Part 2 · 2 hrs

Cron — scheduling automated tasks

0:00–0:10
Recap
0:10–0:35
Lecture
0:35–1:45
Lab 6 Pt 2
1:45–1:55
Bonus
1:55–2:00
Wrap
FridayMini-Assessment 4 · 2 hrs

Mini-Assessment 4 — CLI Power Tools

0:00–0:25
Written
0:25–1:50
Practical
1:50–2:00
Review
TopicWeightFormat
Cron syntax reading and writing15%Written + Practical
Redirection operators (>, >>, 2>, 2>&1)10%Written
Compression formats and trade-offs5%Written
Pipeline construction challenge30%Practical
Compression/archive tasks20%Practical
Cron job creation and verification20%Practical

What you need ready before Monday

Lab 6 handout printed Mini-Assessment 4 printed (Friday) /usr/src/ populated on student VMs for compression lab
← Week 3 Day 1 Lesson Plan → Week 5 → Course Outline